@import 'shared';

:local(.profile-entry) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  justify-content: center;
  align-items: center;
  display: flex;
  pointer-events: auto;
  z-index: 9;
  background-color: var(--full-panel-background-color);


  a {
    cursor: pointer;
  }

  :local(.logo) {
    max-width: 150px;
    max-height: 64px;
    position: absolute;
    right: 32px;
    bottom: 32px;
    display: none;
    filter: drop-shadow(0 0 4px #888);

    @media (min-width: 500px) {
      display: block;
    }
  }

  :local(.form) {
    height: 100%;
  }

  :local(.box) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    flex: 1 1 100%;
    width: 60vw;
    min-width: 300px;
    max-width: 700px;
    min-height: 200px;
    max-height: 100vh;
    @media (min-height: 1000px) {
      max-height: 1000px;
    }
    height: 90%;

    :local(.links) {
      display: flex;
      justify-content: center;
      width: 100%;
      margin: 16px;

      a {
        margin: 0px 12px;
        color: var(--panel-subtext-link-color);
      }
    }
  }

  :local(.title) {
    @extend %top-title;
    width: 100%;
    color: var(--panel-text-color);
    text-align: center;
  }

  :local(.display-name) {
    font-size: 14pt;
    padding: 1em;
  }

  :local(.form-field-text) {
    @extend %default-font;

    border: 1px solid var(--text-field-border-color);
    background-color: var(--text-field-background-color);
    border-radius: 10px;
    font-size: 1.1em;
    color: var(--text-field-text-color);
    outline: none;
    line-height: 2.0em;
    padding-left: 1.25em;
    padding-right: 1.25em;
    margin: 0.5em 0;
  }

  :local(.form-submit) {
    @extend %bottom-action-button;
    margin: 0;
    min-height: max-content;
    margin-top: 16px;
  }

  :local(.preview) {
    flex: 1;
    display: flex;
    position: relative;
    max-width: 300px;
    overflow: hidden;
  }

  :local(.choose-avatar) {
    position: absolute;
    width: 100%;
    bottom: 16px;
    left: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    a {
      align-self: flex-end;
      @extend %action-button-secondary;
    }
  }

  :local(.edit-avatar) {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--tile-button-icon-color);
    font-size: 12pt;
    background: var(--tile-button-background-color);
    border-radius: 30px;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    &:hover {
      background: $action-color;
      color: var(--tile-button-icon-hover-color);
    }
  }

  :local(.close) {
    top: 32px;
    left: 24px;
    height: 35px;
    position: absolute;

    button {
      font-size: 1.6em;
      @extend %panel-widget;
    }
  }
}
